import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import '@/register'
import store from '@/store'
import '@/mock'

Vue.config.productionTip = false

new Vue({
  beforeCreate(){
    Vue.prototype.$bus = this //安装总线
  },
  render: h => h(App),
  router,
  store
}).$mount('#app')


// 测试mock
// import '@/mock'
// import axios from 'axios'
// axios.get('/mock/userinfo').then(res=>{
//     console.log('获取到的数据',res);
// }).catch(err=>{
//   console.log(err);
// })
// // 测试接口
// import axios from 'axios'
// axios.get()